package com.hzhjhh.view.manageView.menus.purchase.purchaseOrder;

import javax.swing.JButton;

import com.hzhjhh.view.manageView.menus.purchase.PurchaseOrderDialog;

/**
 * 菜单栏初始化-采购-采购表弹出框-退出按钮
 * 
 * @author 12083
 *
 */
public class QuitBt {

	/**
	 * 按钮
	 */
	public static JButton btInit(PurchaseOrderDialog stockDialog) {
		JButton quit = new JButton();
		quit.setBounds(564, 93, 83, 25);
        quit.setText("退出");
        quit.addActionListener(event -> {
        	stockDialog.setVisible(false); //退出当前界面
        	stockDialog.disable();
        });
        
		return quit;
	}
}
